cmake_minimum_required(VERSION 3.10)
project(MyProject)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11)

# 添加一个可执行文件
add_executable(<%= TARGET %> ../src/main.cpp)

#添加库文件
target_link_libraries(<%= TARGET %> <%= LIBRARY %>)

#参数选项
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} <%= PARAME %>")
# 指定包含的头文件目录
# 假设你的头文件位于 "include/inner"
target_include_directories(<%= TARGET %> PRIVATE
    <%= INCLUDE_DIRS %>
)

# 注意: CMAKE_RUNTIME_OUTPUT_DIRECTORY 应该设置为相对路径
set_target_properties(<%= TARGET %> PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/../bin"
)